<%
  #File:    /app/views/jobs/show.rhtml
  #Author:  Andrew Stone
  #Created: 08.07.2006
%>

<%=start_large_div_wrapper%>
  <div id="page_title">Showing job id: <%=@job.id%></div>
  <div id="large">
    <div id="header_links">
      <%=secure_link_to("View PDF", ca("/jobs","view_pdf", @job.id))%>
    </div>
    <table id="job_info">
      <tbody>
        <tr>
          <td class="label">Position Title:</td>
          <td class="data">
            <%=h(@job.title)%>
          </td>
        </tr>
        <tr>
          <td class="label">Department:</td>
          <td class="data">
            <%=h(@job.department)%>
          </td>
        </tr>
        <tr>
          <td class="label">Supervisor:</td>
          <td class="data">
            <%=h(@job.supervisor)%>
          </td>
        </tr>
        <tr>
          <td class="label">Location:</td>
          <td class="data">
            <%=h(@job.location)%>
          </td>
        </tr>
        <tr>
          <td class="label">Posting start:</td>
          <td class="data">
            <%=h(mmddyyyy(@job.period_start))%> <br/> 
          </td>
        </tr>
        <tr>
          <td class="label">Posting end:</td>
          <td class="data">
            <%=h(mmddyyyy(@job.period_end))%>
          </td>
        </tr>
      </tbody>
    </table>
    <hr/>
    <%=job_section("Purpose of Position",@job.description)%>
    <%=job_section("Essential Functions",@job.essential_functions,true,JOB_ESSENTIAL_NOTE)%>
    <%=job_section("Non-Essential Functions",@job.non_essential_functions,true,JOB_NON_ESSENTIAL_NOTE)%>
    <%=job_section("Success Factors",@job.success_factors,true)%>
    <%=job_section("Knowledge, Skills and Abilities Required to Successfully Perform Position",@job.required_list,true)%>
    <%=job_section("Physical Demands",@job.physical_demands)%>
    <%=job_section("How to respond",@job.how_to_respond)%>
    <br/>
    <br/>
    <br/>
    <strong>
      <p>
        <span class="job_section">Notice:</span><br/>
        <%=h(@job.notice)%>
      </p> 
    </strong>
    <br/><br/>
    <hr/>
    <span style="font-size: x-small">
      <%=h(@job.footer)%>
    </span>
    <div id="actions">
    <%
      links = []
      links << secure_link_to("List",ca("/jobs", "list"))
      links << secure_link_to("Update",ca("/jobs","update",@job.id))
    %>
    <%=secure_links(links)%>

    </div>
  </div>
<%=end_div_wrapper%>
<%=end_form_tag%>
